1
general::
Irritable, grouchy, as in Don't ask him today? he's out of sorts. This expression Also implies that one's poor spirits result from feeling slightly ill. [Early 1600s] The synonym out of humor, on the other hand, used more in Britain than America, simply means "ill-tempered" or "irritable." [Mid-1600s]
American Heritage Idioms